import request from "@/utils/request";

export function updateUserProfile(data) {
    return request({
        url: '/system/user/profile',
        method: 'put',
        data: data
    })

}

// 上传用户头像
export function uploadAvatarApi(data) {
    return request({
        url: '/system/user/profile/avatar',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}